package com.sodaopen.study.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sodaopen.study.entity.Teacher;
import com.sodaopen.study.mapper.TeacherMapper;
import com.sodaopen.study.service.TeacherService;

@Service
public class TeacherServiceImpl implements TeacherService {

	@Autowired
	private TeacherMapper teacherMapper;

	@Override
	public Teacher findById(Integer teacherId) {
		return teacherMapper.selectById(teacherId);
	}

	@Override
	public Teacher findUserByUsername(String username) {
		return teacherMapper.selectByUsername(username);
	}

}
